using System;
using System.ComponentModel.DataAnnotations;

namespace ErpManager.WPF.Models
{
    public class Dealer
    {
        [Key]
        public int DealerId { get; set; }

        [Required]
        [StringLength(100)]
        public string DealerName { get; set; } = string.Empty;

        [Required]
        [StringLength(50)]
        public string Contact { get; set; } = string.Empty;

        [Required]
        [StringLength(20)]
        public string Phone { get; set; } = string.Empty;

        [StringLength(200)]
        public string Address { get; set; } = string.Empty;

        public DateTime CreateTime { get; set; }

        public DateTime UpdateTime { get; set; }
    }
}
